package com.kongyz;

import com.kongyz.shape.Shape;

/**
 * @author kongyz
 * @date 2018/6/22 21:43
 * @Description:
 */
public class Demo {
    public static void main(String[] args) {
        //执行填充操作(数据库查询等)
        ShapeCache.loadCache();

        Shape cloneShape=ShapeCache.getShape("1");
        System.out.println(cloneShape.getType());


        Shape cloneShape2=ShapeCache.getShape("2");
        System.out.println(cloneShape2.getType());

        Shape cloneShape3=ShapeCache.getShape("3");
        System.out.println(cloneShape3.getType());
    }
}
